package com.beiming.libra.domain;

import com.beiming.libra.common.enums.CaseApplyEnum;
import com.beiming.libra.common.utils.CommonsUtils;
import javax.persistence.Column;
import javax.persistence.Table;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@Table(name = "arbitration_case_document")
public class ArbitrationCaseDocument extends BaseObject {

  /**
   * 仲裁申请表id
   */
  @Column(name = "case_id")
  @ApiModelProperty(value = "仲裁申请表id", required = false, hidden = false)
  private String caseId;

  /**
   * 证据类型
   */
  @Column(name = "evidence_type")
  @ApiModelProperty(value = "证据类型", required = false, hidden = false)
  private String evidenceType;

  /**
   * 材料名称
   */
  @Column(name = "document_name")
  @ApiModelProperty(value = "材料名称", required = false, hidden = false)
  private String documentName;

  /**
   * 证据对象
   */
  @Column(name = "document_content")
  @ApiModelProperty(value = "证据对象", required = false, hidden = false)
  private String documentContent;

  /**
   * 附件名称
   */
  @Column(name = "attachment_name")
  @ApiModelProperty(value = "附件名称", required = false, hidden = false)
  private String attachmentName;

  /**
   * 附件url
   */
  @Column(name = "attachment_url")
  @ApiModelProperty(value = "附件url", required = false, hidden = false)
  private String attachmentUrl;
  /**
   * 附件id
   */
  @Column(name = "file_id")
  @ApiModelProperty(value = "附件id", required = false, hidden = false)
  private String fileId;

  public ArbitrationCaseDocument(String caseId, String attachmentName,
      String attachmentUrl, String fileId) {
    super.setId(CommonsUtils.get32BitUUID());
    this.caseId = caseId;
    this.attachmentName = attachmentName;
    this.attachmentUrl = attachmentUrl;
    this.fileId = fileId;
    this.evidenceType = CaseApplyEnum.DOCUMENTARY_EVIDENCE.getCode() + "";
  }

  public ArbitrationCaseDocument() {
  }
}
